﻿@{
    ViewBag.Title = "CommentMessage";
}

<style type="text/css">
    .aa {
        background-color: #808080;
        height: 50px;
        line-height: 50px;
        text-align: center;
    }

    th {
        width: 180px;
    }

    td {
        text-align: center;
    }
</style>
<form action="#" method="post">
    <table border="1" cellspacing="0">
        <tr>
            <th colspan="7">
                <h2 class="aa">评论信息列表</h2>
            </th>
        </tr>
        <tr><th>编号</th>
            <th>图书编号</th>
            <th>客户编号</th>
            <th>内容</th>
            <th>日期</th>
            <th>状态</th>
        </tr>
        @foreach (var item in ViewBag.tt)
        {
            <tr>
                <td>@item.CommentId</td>
                <td>@item.BookId</td>
                <td>@item.UserId</td>
                <td>@item.CommentValue</td>
                <td>@item.CommentDate</td>
                <td><a href="../Comment/UpdateComment?CommentId=@item.CommentId">@(item.CommentState==1?"未处理":"已处理")</a></td>
            </tr>         
        }
    </table>
</form>

